home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / caps / nsIPrincipal.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  19KB  |  436 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIPrincipal.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIPrincipal_h__
  6. #define __gen_nsIPrincipal_h__
  7.  
  8.  
  9. #ifndef __gen_nsISerializable_h__
  10. #include "nsISerializable.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. struct JSContext;
  18. struct JSPrincipals;
  19. class nsIURI; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsIPrincipal */
  23. #define NS_IPRINCIPAL_IID_STR "fb9ddeb9-26f9-46b8-85d5-3978aaee05aa"
  24.  
  25. #define NS_IPRINCIPAL_IID \
  26.   {0xfb9ddeb9, 0x26f9, 0x46b8, \
  27.     { 0x85, 0xd5, 0x39, 0x78, 0xaa, 0xee, 0x05, 0xaa }}
  28.  
  29. class NS_NO_VTABLE nsIPrincipal : public nsISerializable {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPRINCIPAL_IID)
  33.  
  34.   /**
  35.      * Values of capabilities for each principal. Order is
  36.      * significant: if an operation is performed on a set
  37.      * of capabilities, the minimum is computed.
  38.      */
  39.   enum { ENABLE_DENIED = 1 };
  40.  
  41.   enum { ENABLE_UNKNOWN = 2 };
  42.  
  43.   enum { ENABLE_WITH_USER_PERMISSION = 3 };
  44.  
  45.   enum { ENABLE_GRANTED = 4 };
  46.  
  47.   /**
  48.      * Returns the security preferences associated with this principal.
  49.      * prefBranch will be set to the pref branch to which these preferences
  50.      * pertain.  id is a pseudo-unique identifier, pertaining to either the
  51.      * fingerprint or the origin.  subjectName is a name that identifies the
  52.      * entity this principal represents (may be empty).  grantedList and
  53.      * deniedList are space-separated lists of capabilities which were
  54.      * explicitly granted or denied by a pref.
  55.      */
  56.   /* void getPreferences (out string prefBranch, out string id, out string subjectName, out string grantedList, out string deniedList); */
  57.   NS_IMETHOD GetPreferences(char **prefBranch, char **id, char **subjectName, char **grantedList, char **deniedList) = 0;
  58.  
  59.   /**
  60.      * Returns whether the other principal is equivalent to this principal.
  61.      * Principals are considered equal if they are the same principal,
  62.      * they have the same origin, or have the same certificate fingerprint ID
  63.      */
  64.   /* boolean equals (in nsIPrincipal other); */
  65.   NS_IMETHOD Equals(nsIPrincipal *other, PRBool *_retval) = 0;
  66.  
  67.   /**
  68.      * Returns a hash value for the principal.
  69.      */
  70.   /* readonly attribute unsigned long hashValue; */
  71.   NS_IMETHOD GetHashValue(PRUint32 *aHashValue) = 0;
  72.  
  73.   /**
  74.      * Returns the JS equivalent of the principal.
  75.      * @see JSPrincipals.h
  76.      */
  77.   /* JSPrincipals getJSPrincipals (in JSContext cx); */
  78.   NS_IMETHOD GetJSPrincipals(JSContext * cx, JSPrincipals * *_retval) = 0;
  79.  
  80.   /**
  81.      * The domain security policy of the principal.
  82.      */
  83.   /* attribute voidPtr securityPolicy; */
  84.   NS_IMETHOD GetSecurityPolicy(void * *aSecurityPolicy) = 0;
  85.   NS_IMETHOD SetSecurityPolicy(void * aSecurityPolicy) = 0;
  86.  
  87.   /* short canEnableCapability (in string capability); */
  88.   NS_IMETHOD CanEnableCapability(const char *capability, PRInt16 *_retval) = 0;
  89.  
  90.   /* void setCanEnableCapability (in string capability, in short canEnable); */
  91.   NS_IMETHOD SetCanEnableCapability(const char *capability, PRInt16 canEnable) = 0;
  92.  
  93.   /* boolean isCapabilityEnabled (in string capability, in voidPtr annotation); */
  94.   NS_IMETHOD IsCapabilityEnabled(const char *capability, void * annotation, PRBool *_retval) = 0;
  95.  
  96.   /* void enableCapability (in string capability, inout voidPtr annotation); */
  97.   NS_IMETHOD EnableCapability(const char *capability, void * *annotation) = 0;
  98.  
  99.   /* void revertCapability (in string capability, inout voidPtr annotation); */
  100.   NS_IMETHOD RevertCapability(const char *capability, void * *annotation) = 0;
  101.  
  102.   /* void disableCapability (in string capability, inout voidPtr annotation); */
  103.   NS_IMETHOD DisableCapability(const char *capability, void * *annotation) = 0;
  104.  
  105.   /**
  106.      * The codebase URI to which this principal pertains.  This is
  107.      * generally the document URI.
  108.      */
  109.   /* readonly attribute nsIURI URI; */
  110.   NS_IMETHOD GetURI(nsIURI * *aURI) = 0;
  111.  
  112.   /**
  113.      * The domain URI to which this principal pertains.
  114.      * This is congruent with HTMLDocument.domain, and may be null.
  115.      * Setting this has no effect on the URI.
  116.      */
  117.   /* attribute nsIURI domain; */
  118.   NS_IMETHOD GetDomain(nsIURI * *aDomain) = 0;
  119.   NS_IMETHOD SetDomain(nsIURI * aDomain) = 0;
  120.  
  121.   /**
  122.      * The origin of this principal's domain, if non-null, or its
  123.      * codebase URI otherwise. An origin is defined as:
  124.      * scheme + host + port.
  125.      */
  126.   /* readonly attribute string origin; */
  127.   NS_IMETHOD GetOrigin(char * *aOrigin) = 0;
  128.  
  129.   /**
  130.      * Whether this principal is associated with a certificate.
  131.      */
  132.   /* readonly attribute boolean hasCertificate; */
  133.   NS_IMETHOD GetHasCertificate(PRBool *aHasCertificate) = 0;
  134.  
  135.   /**
  136.      * The fingerprint ID of this principal's certificate.
  137.      * Throws if there is no certificate associated with this principal.
  138.      */
  139.   /* readonly attribute AUTF8String fingerprint; */
  140.   NS_IMETHOD GetFingerprint(nsACString & aFingerprint) = 0;
  141.  
  142.   /**
  143.      * The pretty name for the certificate.  This sort of (but not really)
  144.      * identifies the subject of the certificate (the entity that stands behind
  145.      * the certificate).  Note that this may be empty; prefer to get the
  146.      * certificate itself and get this information from it, since that may
  147.      * provide more information.
  148.      *
  149.      * Throws if there is no certificate associated with this principal.
  150.      */
  151.   /* readonly attribute AUTF8String prettyName; */
  152.   NS_IMETHOD GetPrettyName(nsACString & aPrettyName) = 0;
  153.  
  154.   /**
  155.      * Returns whether the other principal is equal to or weaker than this
  156.      * principal.  Principals are equal if they are the same object, they
  157.      * have the same origin, or they have the same certificate ID.
  158.      *
  159.      * Thus a principal subsumes itself if it is equal to itself.
  160.      *
  161.      * The system principal subsumes itself and all other principals except
  162.      * the non-principal.
  163.      *
  164.      * The non-principal is not equal to itself or any other principal, and
  165.      * therefore does not subsume itself.
  166.      *
  167.      * Both codebase and certificate principals are subsumed by the system
  168.      * principal, but no codebase or certificate principal yet subsumes any
  169.      * other codebase or certificate principal.  This may change in a future
  170.      * release; note that nsIPrincipal is unfrozen, not slated to be frozen.
  171.      */
  172.   /* boolean subsumes (in nsIPrincipal other); */
  173.   NS_IMETHOD Subsumes(nsIPrincipal *other, PRBool *_retval) = 0;
  174.  
  175.   /**
  176.      * The subject name for the certificate.  This actually identifies the
  177.      * subject of the certificate.  This may well not be a string that would
  178.      * mean much to a typical user on its own (e.g. it may have a number of
  179.      * different names all concatenated together with some information on what
  180.      * they mean in between).
  181.      *
  182.      * Throws if there is no certificate associated with this principal.
  183.      */
  184.   /* readonly attribute AUTF8String subjectName; */
  185.   NS_IMETHOD GetSubjectName(nsACString & aSubjectName) = 0;
  186.  
  187.   /**
  188.      * The certificate associated with this principal, if any.  If there isn't
  189.      * one, this will return null.  Getting this attribute never throws.
  190.      */
  191.   /* readonly attribute nsISupports certificate; */
  192.   NS_IMETHOD GetCertificate(nsISupports * *aCertificate) = 0;
  193.  
  194. };
  195.  
  196. /* Use this macro when declaring classes that implement this interface. */
  197. #define NS_DECL_NSIPRINCIPAL \
  198.   NS_IMETHOD GetPreferences(char **prefBranch, char **id, char **subjectName, char **grantedList, char **deniedList); \
  199.   NS_IMETHOD Equals(nsIPrincipal *other, PRBool *_retval); \
  200.   NS_IMETHOD GetHashValue(PRUint32 *aHashValue); \
  201.   NS_IMETHOD GetJSPrincipals(JSContext * cx, JSPrincipals * *_retval); \
  202.   NS_IMETHOD GetSecurityPolicy(void * *aSecurityPolicy); \
  203.   NS_IMETHOD SetSecurityPolicy(void * aSecurityPolicy); \
  204.   NS_IMETHOD CanEnableCapability(const char *capability, PRInt16 *_retval); \
  205.   NS_IMETHOD SetCanEnableCapability(const char *capability, PRInt16 canEnable); \
  206.   NS_IMETHOD IsCapabilityEnabled(const char *capability, void * annotation, PRBool *_retval); \
  207.   NS_IMETHOD EnableCapability(const char *capability, void * *annotation); \
  208.   NS_IMETHOD RevertCapability(const char *capability, void * *annotation); \
  209.   NS_IMETHOD DisableCapability(const char *capability, void * *annotation); \
  210.   NS_IMETHOD GetURI(nsIURI * *aURI); \
  211.   NS_IMETHOD GetDomain(nsIURI * *aDomain); \
  212.   NS_IMETHOD SetDomain(nsIURI * aDomain); \
  213.   NS_IMETHOD GetOrigin(char * *aOrigin); \
  214.   NS_IMETHOD GetHasCertificate(PRBool *aHasCertificate); \
  215.   NS_IMETHOD GetFingerprint(nsACString & aFingerprint); \
  216.   NS_IMETHOD GetPrettyName(nsACString & aPrettyName); \
  217.   NS_IMETHOD Subsumes(nsIPrincipal *other, PRBool *_retval); \
  218.   NS_IMETHOD GetSubjectName(nsACString & aSubjectName); \
  219.   NS_IMETHOD GetCertificate(nsISupports * *aCertificate); 
  220.  
  221. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  222. #define NS_FORWARD_NSIPRINCIPAL(_to) \
  223.   NS_IMETHOD GetPreferences(char **prefBranch, char **id, char **subjectName, char **grantedList, char **deniedList) { return _to GetPreferences(prefBranch, id, subjectName, grantedList, deniedList); } \
  224.   NS_IMETHOD Equals(nsIPrincipal *other, PRBool *_retval) { return _to Equals(other, _retval); } \
  225.   NS_IMETHOD GetHashValue(PRUint32 *aHashValue) { return _to GetHashValue(aHashValue); } \
  226.   NS_IMETHOD GetJSPrincipals(JSContext * cx, JSPrincipals * *_retval) { return _to GetJSPrincipals(cx, _retval); } \
  227.   NS_IMETHOD GetSecurityPolicy(void * *aSecurityPolicy) { return _to GetSecurityPolicy(aSecurityPolicy); } \
  228.   NS_IMETHOD SetSecurityPolicy(void * aSecurityPolicy) { return _to SetSecurityPolicy(aSecurityPolicy); } \
  229.   NS_IMETHOD CanEnableCapability(const char *capability, PRInt16 *_retval) { return _to CanEnableCapability(capability, _retval); } \
  230.   NS_IMETHOD SetCanEnableCapability(const char *capability, PRInt16 canEnable) { return _to SetCanEnableCapability(capability, canEnable); } \
  231.   NS_IMETHOD IsCapabilityEnabled(const char *capability, void * annotation, PRBool *_retval) { return _to IsCapabilityEnabled(capability, annotation, _retval); } \
  232.   NS_IMETHOD EnableCapability(const char *capability, void * *annotation) { return _to EnableCapability(capability, annotation); } \
  233.   NS_IMETHOD RevertCapability(const char *capability, void * *annotation) { return _to RevertCapability(capability, annotation); } \
  234.   NS_IMETHOD DisableCapability(const char *capability, void * *annotation) { return _to DisableCapability(capability, annotation); } \
  235.   NS_IMETHOD GetURI(nsIURI * *aURI) { return _to GetURI(aURI); } \
  236.   NS_IMETHOD GetDomain(nsIURI * *aDomain) { return _to GetDomain(aDomain); } \
  237.   NS_IMETHOD SetDomain(nsIURI * aDomain) { return _to SetDomain(aDomain); } \
  238.   NS_IMETHOD GetOrigin(char * *aOrigin) { return _to GetOrigin(aOrigin); } \
  239.   NS_IMETHOD GetHasCertificate(PRBool *aHasCertificate) { return _to GetHasCertificate(aHasCertificate); } \
  240.   NS_IMETHOD GetFingerprint(nsACString & aFingerprint) { return _to GetFingerprint(aFingerprint); } \
  241.   NS_IMETHOD GetPrettyName(nsACString & aPrettyName) { return _to GetPrettyName(aPrettyName); } \
  242.   NS_IMETHOD Subsumes(nsIPrincipal *other, PRBool *_retval) { return _to Subsumes(other, _retval); } \
  243.   NS_IMETHOD GetSubjectName(nsACString & aSubjectName) { return _to GetSubjectName(aSubjectName); } \
  244.   NS_IMETHOD GetCertificate(nsISupports * *aCertificate) { return _to GetCertificate(aCertificate); } 
  245.  
  246. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  247. #define NS_FORWARD_SAFE_NSIPRINCIPAL(_to) \
  248.   NS_IMETHOD GetPreferences(char **prefBranch, char **id, char **subjectName, char **grantedList, char **deniedList) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPreferences(prefBranch, id, subjectName, grantedList, deniedList); } \
  249.   NS_IMETHOD Equals(nsIPrincipal *other, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Equals(other, _retval); } \
  250.   NS_IMETHOD GetHashValue(PRUint32 *aHashValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHashValue(aHashValue); } \
  251.   NS_IMETHOD GetJSPrincipals(JSContext * cx, JSPrincipals * *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetJSPrincipals(cx, _retval); } \
  252.   NS_IMETHOD GetSecurityPolicy(void * *aSecurityPolicy) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSecurityPolicy(aSecurityPolicy); } \
  253.   NS_IMETHOD SetSecurityPolicy(void * aSecurityPolicy) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSecurityPolicy(aSecurityPolicy); } \
  254.   NS_IMETHOD CanEnableCapability(const char *capability, PRInt16 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanEnableCapability(capability, _retval); } \
  255.   NS_IMETHOD SetCanEnableCapability(const char *capability, PRInt16 canEnable) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCanEnableCapability(capability, canEnable); } \
  256.   NS_IMETHOD IsCapabilityEnabled(const char *capability, void * annotation, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCapabilityEnabled(capability, annotation, _retval); } \
  257.   NS_IMETHOD EnableCapability(const char *capability, void * *annotation) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnableCapability(capability, annotation); } \
  258.   NS_IMETHOD RevertCapability(const char *capability, void * *annotation) { return !_to ? NS_ERROR_NULL_POINTER : _to->RevertCapability(capability, annotation); } \
  259.   NS_IMETHOD DisableCapability(const char *capability, void * *annotation) { return !_to ? NS_ERROR_NULL_POINTER : _to->DisableCapability(capability, annotation); } \
  260.   NS_IMETHOD GetURI(nsIURI * *aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURI(aURI); } \
  261.   NS_IMETHOD GetDomain(nsIURI * *aDomain) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDomain(aDomain); } \
  262.   NS_IMETHOD SetDomain(nsIURI * aDomain) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDomain(aDomain); } \
  263.   NS_IMETHOD GetOrigin(char * *aOrigin) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOrigin(aOrigin); } \
  264.   NS_IMETHOD GetHasCertificate(PRBool *aHasCertificate) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasCertificate(aHasCertificate); } \
  265.   NS_IMETHOD GetFingerprint(nsACString & aFingerprint) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFingerprint(aFingerprint); } \
  266.   NS_IMETHOD GetPrettyName(nsACString & aPrettyName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrettyName(aPrettyName); } \
  267.   NS_IMETHOD Subsumes(nsIPrincipal *other, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Subsumes(other, _retval); } \
  268.   NS_IMETHOD GetSubjectName(nsACString & aSubjectName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSubjectName(aSubjectName); } \
  269.   NS_IMETHOD GetCertificate(nsISupports * *aCertificate) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCertificate(aCertificate); } 
  270.  
  271. #if 0
  272. /* Use the code below as a template for the implementation class for this interface. */
  273.  
  274. /* Header file */
  275. class nsPrincipal : public nsIPrincipal
  276. {
  277. public:
  278.   NS_DECL_ISUPPORTS
  279.   NS_DECL_NSIPRINCIPAL
  280.  
  281.   nsPrincipal();
  282.  
  283. private:
  284.   ~nsPrincipal();
  285.  
  286. protected:
  287.   /* additional members */
  288. };
  289.  
  290. /* Implementation file */
  291. NS_IMPL_ISUPPORTS1(nsPrincipal, nsIPrincipal)
  292.  
  293. nsPrincipal::nsPrincipal()
  294. {
  295.   /* member initializers and constructor code */
  296. }
  297.  
  298. nsPrincipal::~nsPrincipal()
  299. {
  300.   /* destructor code */
  301. }
  302.  
  303. /* void getPreferences (out string prefBranch, out string id, out string subjectName, out string grantedList, out string deniedList); */
  304. NS_IMETHODIMP nsPrincipal::GetPreferences(char **prefBranch, char **id, char **subjectName, char **grantedList, char **deniedList)
  305. {
  306.     return NS_ERROR_NOT_IMPLEMENTED;
  307. }
  308.  
  309. /* boolean equals (in nsIPrincipal other); */
  310. NS_IMETHODIMP nsPrincipal::Equals(nsIPrincipal *other, PRBool *_retval)
  311. {
  312.     return NS_ERROR_NOT_IMPLEMENTED;
  313. }
  314.  
  315. /* readonly attribute unsigned long hashValue; */
  316. NS_IMETHODIMP nsPrincipal::GetHashValue(PRUint32 *aHashValue)
  317. {
  318.     return NS_ERROR_NOT_IMPLEMENTED;
  319. }
  320.  
  321. /* JSPrincipals getJSPrincipals (in JSContext cx); */
  322. NS_IMETHODIMP nsPrincipal::GetJSPrincipals(JSContext * cx, JSPrincipals * *_retval)
  323. {
  324.     return NS_ERROR_NOT_IMPLEMENTED;
  325. }
  326.  
  327. /* attribute voidPtr securityPolicy; */
  328. NS_IMETHODIMP nsPrincipal::GetSecurityPolicy(void * *aSecurityPolicy)
  329. {
  330.     return NS_ERROR_NOT_IMPLEMENTED;
  331. }
  332. NS_IMETHODIMP nsPrincipal::SetSecurityPolicy(void * aSecurityPolicy)
  333. {
  334.     return NS_ERROR_NOT_IMPLEMENTED;
  335. }
  336.  
  337. /* short canEnableCapability (in string capability); */
  338. NS_IMETHODIMP nsPrincipal::CanEnableCapability(const char *capability, PRInt16 *_retval)
  339. {
  340.     return NS_ERROR_NOT_IMPLEMENTED;
  341. }
  342.  
  343. /* void setCanEnableCapability (in string capability, in short canEnable); */
  344. NS_IMETHODIMP nsPrincipal::SetCanEnableCapability(const char *capability, PRInt16 canEnable)
  345. {
  346.     return NS_ERROR_NOT_IMPLEMENTED;
  347. }
  348.  
  349. /* boolean isCapabilityEnabled (in string capability, in voidPtr annotation); */
  350. NS_IMETHODIMP nsPrincipal::IsCapabilityEnabled(const char *capability, void * annotation, PRBool *_retval)
  351. {
  352.     return NS_ERROR_NOT_IMPLEMENTED;
  353. }
  354.  
  355. /* void enableCapability (in string capability, inout voidPtr annotation); */
  356. NS_IMETHODIMP nsPrincipal::EnableCapability(const char *capability, void * *annotation)
  357. {
  358.     return NS_ERROR_NOT_IMPLEMENTED;
  359. }
  360.  
  361. /* void revertCapability (in string capability, inout voidPtr annotation); */
  362. NS_IMETHODIMP nsPrincipal::RevertCapability(const char *capability, void * *annotation)
  363. {
  364.     return NS_ERROR_NOT_IMPLEMENTED;
  365. }
  366.  
  367. /* void disableCapability (in string capability, inout voidPtr annotation); */
  368. NS_IMETHODIMP nsPrincipal::DisableCapability(const char *capability, void * *annotation)
  369. {
  370.     return NS_ERROR_NOT_IMPLEMENTED;
  371. }
  372.  
  373. /* readonly attribute nsIURI URI; */
  374. NS_IMETHODIMP nsPrincipal::GetURI(nsIURI * *aURI)
  375. {
  376.     return NS_ERROR_NOT_IMPLEMENTED;
  377. }
  378.  
  379. /* attribute nsIURI domain; */
  380. NS_IMETHODIMP nsPrincipal::GetDomain(nsIURI * *aDomain)
  381. {
  382.     return NS_ERROR_NOT_IMPLEMENTED;
  383. }
  384. NS_IMETHODIMP nsPrincipal::SetDomain(nsIURI * aDomain)
  385. {
  386.     return NS_ERROR_NOT_IMPLEMENTED;
  387. }
  388.  
  389. /* readonly attribute string origin; */
  390. NS_IMETHODIMP nsPrincipal::GetOrigin(char * *aOrigin)
  391. {
  392.     return NS_ERROR_NOT_IMPLEMENTED;
  393. }
  394.  
  395. /* readonly attribute boolean hasCertificate; */
  396. NS_IMETHODIMP nsPrincipal::GetHasCertificate(PRBool *aHasCertificate)
  397. {
  398.     return NS_ERROR_NOT_IMPLEMENTED;
  399. }
  400.  
  401. /* readonly attribute AUTF8String fingerprint; */
  402. NS_IMETHODIMP nsPrincipal::GetFingerprint(nsACString & aFingerprint)
  403. {
  404.     return NS_ERROR_NOT_IMPLEMENTED;
  405. }
  406.  
  407. /* readonly attribute AUTF8String prettyName; */
  408. NS_IMETHODIMP nsPrincipal::GetPrettyName(nsACString & aPrettyName)
  409. {
  410.     return NS_ERROR_NOT_IMPLEMENTED;
  411. }
  412.  
  413. /* boolean subsumes (in nsIPrincipal other); */
  414. NS_IMETHODIMP nsPrincipal::Subsumes(nsIPrincipal *other, PRBool *_retval)
  415. {
  416.     return NS_ERROR_NOT_IMPLEMENTED;
  417. }
  418.  
  419. /* readonly attribute AUTF8String subjectName; */
  420. NS_IMETHODIMP nsPrincipal::GetSubjectName(nsACString & aSubjectName)
  421. {
  422.     return NS_ERROR_NOT_IMPLEMENTED;
  423. }
  424.  
  425. /* readonly attribute nsISupports certificate; */
  426. NS_IMETHODIMP nsPrincipal::GetCertificate(nsISupports * *aCertificate)
  427. {
  428.     return NS_ERROR_NOT_IMPLEMENTED;
  429. }
  430.  
  431. /* End of implementation class template. */
  432. #endif
  433.  
  434.  
  435. #endif /* __gen_nsIPrincipal_h__ */
  436.